import { createSlice } from '@reduxjs/toolkit'

const initialState = {
    data: "朱",
}

export const msgListtSlice = createSlice({
    name: 'zzz',
    initialState,
    reducers: {
        addMsg: (state, { payload }) => {
            // console.log("payload in msgList：", payload)
            state.data = payload

        }
    }
})

export default msgListtSlice
